package com.farewell.blog.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.farewell.blog.entity.SearchResource;
import com.farewell.blog.pojo.ResourceList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Farewell
 * @date 2021/3/4
 */
public interface ResourceListMapper extends BaseMapper<ResourceList> {
    List<ResourceList> getAllResourceList();

    List<ResourceList> listResourceList(Page<ResourceList> page);

    List<ResourceList> getResourcesBySearch(Page<ResourceList> page, @Param("searchResource") SearchResource searchResource);
}
